Skip to content
This repository has been archived by the owner on Apr 13, 2023. It is now read-only.

Commit

Permalink
Remove unnecessary proj dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
MathewSachin committed Feb 27, 2019
1 parent 8ba0ae0 commit 381a8b9
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Captura.Base/Services/ServiceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public static void BindAsInterfaceAndClass<TInterface, TClass>(this IBinder Bind
Binder.BindSingleton<TClass>();

// ReSharper disable once ConvertClosureToMethodGroup
Binder.Bind<TInterface>(() => ServiceProvider.Get<TClass>());
Binder.Bind<TInterface>(() => Get<TClass>());
}
}
}
1 change: 0 additions & 1 deletion src/Captura.MouseKeyHook/Captura.MouseKeyHook.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Captura.Base\Captura.Base.csproj" />
<ProjectReference Include="..\Screna\Screna.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="keymaps\*.json" Exclude="keymaps\schema.json">
Expand Down
1 change: 0 additions & 1 deletion src/Captura.Windows/Imaging/DrawingFrameBase.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using Captura;

Expand Down
1 change: 0 additions & 1 deletion src/Captura.YouTube/Captura.YouTube.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,5 @@

<ItemGroup>
<ProjectReference Include="..\Captura.Base\Captura.Base.csproj" />
<ProjectReference Include="..\Screna\Screna.csproj" />
</ItemGroup>
</Project>
6 changes: 3 additions & 3 deletions src/Captura.YouTube/YouTubeUploaderViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using System.Threading.Tasks;
using Captura.Models;
using Google.Apis.Upload;
using Screna;

namespace Captura.ViewModels
{
Expand All @@ -24,7 +23,8 @@ public class YouTubeUploaderViewModel : NotifyPropertyChanged
YouTubeUploadRequest _uploadRequest;

public YouTubeUploaderViewModel(YouTubeUploader Uploader,
IMessageProvider MessageProvider)
IMessageProvider MessageProvider,
IClipboardService ClipboardService)
{
_uploader = Uploader;
_messageProvider = MessageProvider;
Expand All @@ -34,7 +34,7 @@ public YouTubeUploaderViewModel(YouTubeUploader Uploader,

OpenVideoCommand = new DelegateCommand(() => Process.Start(Link), false);

CopyLinkCommand = new DelegateCommand(() => Link.WriteToClipboard(), false);
CopyLinkCommand = new DelegateCommand(() => ClipboardService.SetText(Link), false);
}

public string FileName
Expand Down
1 change: 0 additions & 1 deletion src/DesktopDuplication/DesktopDuplication.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<ItemGroup>
<ProjectReference Include="..\Captura.Base\Captura.Base.csproj" />
<ProjectReference Include="..\Captura.Loc\Captura.Loc.csproj" />
<ProjectReference Include="..\Screna\Screna.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="SharpDX.Direct2D1" Version="4.2.0" />
Expand Down

0 comments on commit 381a8b9

Please sign in to comment.