Skip to content

Commit

Permalink
Removed unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
hmadrigal committed Mar 25, 2012
1 parent 175f915 commit e8246c5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
5 changes: 0 additions & 5 deletions MefAddIns/MefAddIns.Extensibility/ISupportedLanguage.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
namespace MefAddIns.Extensibility
{
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/// <summary>
/// Defines the functionality that third parties have to implement for my language plug in
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion MefAddIns/MefAddIns.Terminal/Bootstrapper.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace MefAddIns.Terminal
{
using MefAddIns.Extensibility;
using Extensibility;
using System.Collections.Generic;
using System.ComponentModel.Composition;

Expand Down
6 changes: 3 additions & 3 deletions MefAddIns/MefAddIns.Terminal/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,16 @@ public static void Main (string[] args)
//An aggregate catalog that combines multiple catalogs
var catalog = new AggregateCatalog();
//Adds all the parts found in same directory where the application is running!
var currentPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(typeof(MainClass)).Location);
var currentPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetAssembly(typeof(MainClass)).Location) ?? "./";
catalog.Catalogs.Add(new DirectoryCatalog(currentPath));

//Create the CompositionContainer with the parts in the catalog
var _container = new CompositionContainer(catalog);
var container = new CompositionContainer(catalog);

//Fill the imports of this object
try
{
_container.ComposeParts(bootStrapper);
container.ComposeParts(bootStrapper);
}
catch (CompositionException compositionException)
{
Expand Down

0 comments on commit e8246c5

Please sign in to comment.