Removed some warnings

This commit is contained in:
Bond_009 2018-12-15 19:53:09 +01:00
parent 336a4a2b8d
commit 22093c9e8f
11 changed files with 22 additions and 37 deletions

View File

@ -35,7 +35,6 @@ namespace DvdLib.Ifo
private ushort _goupProgramNumber; private ushort _goupProgramNumber;
public readonly ProgramChain Goup; // ?? maybe Group public readonly ProgramChain Goup; // ?? maybe Group
private byte _playbackMode;
public ProgramPlaybackMode PlaybackMode { get; private set; } public ProgramPlaybackMode PlaybackMode { get; private set; }
public uint ProgramCount { get; private set; } public uint ProgramCount { get; private set; }

View File

@ -144,24 +144,21 @@ namespace IsoMounter
return Task.FromResult(false); return Task.FromResult(false);
} }
public async Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken) public Task<IIsoMount> Mount(string isoPath, CancellationToken cancellationToken)
{ {
LinuxMount mountedISO; LinuxMount mountedISO;
if (MountISO(isoPath, out mountedISO)) { if (MountISO(isoPath, out mountedISO))
{
return mountedISO; return Task.FromResult<IIsoMount>(mountedISO);
}
}else{ else
{
throw new IOException(String.Format( throw new IOException(String.Format(
"An error occurred trying to mount image [$0].", "An error occurred trying to mount image [$0].",
isoPath isoPath
)); ));
} }
} }
#endregion #endregion

View File

@ -1,8 +1,5 @@
using System; using System;
using MediaBrowser.Model.Diagnostics;
using MediaBrowser.Model.IO; using MediaBrowser.Model.IO;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.System;
namespace IsoMounter namespace IsoMounter
{ {

View File

@ -3179,4 +3179,4 @@ namespace Emby.Server.Implementations.Library
CollectionFolder.SaveLibraryOptions(virtualFolderPath, libraryOptions); CollectionFolder.SaveLibraryOptions(virtualFolderPath, libraryOptions);
} }
} }
} }

View File

@ -109,7 +109,7 @@ namespace Mono.Nat.Pmp
if (attempt == 0) if (attempt == 0)
{ {
Task.Run(() => CreatePortMapListen(udpClient, mapping, cancellationTokenSource.Token)); await Task.Run(() => CreatePortMapListen(udpClient, mapping, cancellationTokenSource.Token));
} }
attempt++; attempt++;
@ -214,4 +214,4 @@ namespace Mono.Nat.Pmp
this.localAddress, this.publicAddress, this.LastSeen); this.localAddress, this.publicAddress, this.LastSeen);
} }
} }
} }

View File

@ -17,7 +17,6 @@ namespace Rssdp
#region Fields #region Fields
private SsdpRootDevice _Device;
private DateTimeOffset _AsAt; private DateTimeOffset _AsAt;
#endregion #endregion
@ -55,7 +54,6 @@ namespace Rssdp
if (_AsAt != value) if (_AsAt != value)
{ {
_AsAt = value; _AsAt = value;
_Device = null;
} }
} }
} }
@ -93,4 +91,4 @@ namespace Rssdp
#endregion #endregion
} }
} }

View File

@ -124,7 +124,7 @@ namespace Rssdp.Infrastructure
{ {
await SearchAsync(CancellationToken.None).ConfigureAwait(false); await SearchAsync(CancellationToken.None).ConfigureAwait(false);
} }
catch (Exception ex) catch (Exception)
{ {
} }
@ -621,4 +621,4 @@ namespace Rssdp.Infrastructure
#endregion #endregion
} }
} }

View File

@ -312,7 +312,7 @@ namespace Rssdp.Infrastructure
{ {
await _CommsServer.SendMessage(System.Text.Encoding.UTF8.GetBytes(message), endPoint, receivedOnlocalIpAddress, cancellationToken).ConfigureAwait(false); await _CommsServer.SendMessage(System.Text.Encoding.UTF8.GetBytes(message), endPoint, receivedOnlocalIpAddress, cancellationToken).ConfigureAwait(false);
} }
catch (Exception ex) catch (Exception)
{ {
} }
@ -558,4 +558,4 @@ namespace Rssdp.Infrastructure
} }
} }
} }
} }

View File

@ -1,19 +1,13 @@
using System; using System;
using System.Net; using System.Net;
using System.Security.Principal; using System.Security.Principal;
using MediaBrowser.Model.Cryptography;
using MediaBrowser.Model.IO;
using MediaBrowser.Model.Logging;
using MediaBrowser.Model.Text;
using SocketHttpListener.Net.WebSockets; using SocketHttpListener.Net.WebSockets;
using SocketHttpListener.Primitives;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace SocketHttpListener.Net namespace SocketHttpListener.Net
{ {
public sealed unsafe partial class HttpListenerContext public sealed unsafe partial class HttpListenerContext
{ {
internal HttpListener _listener;
private HttpListenerResponse _response; private HttpListenerResponse _response;
private IPrincipal _user; private IPrincipal _user;

View File

@ -253,7 +253,7 @@ namespace SocketHttpListener.Net
//if (NetEventSource.IsEnabled) //if (NetEventSource.IsEnabled)
// NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, codePoint)); // NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_percent_value, codePoint));
} }
catch (EncoderFallbackException e) catch (EncoderFallbackException)
{ {
// If utf8Encoding.GetBytes() fails // If utf8Encoding.GetBytes() fails
//if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, unicodeString, e.Message)); //if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, unicodeString, e.Message));
@ -303,11 +303,11 @@ namespace SocketHttpListener.Net
return true; return true;
} }
catch (DecoderFallbackException e) catch (DecoderFallbackException)
{ {
//if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_bytes, GetOctetsAsString(_rawOctets), e.Message)); //if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_bytes, GetOctetsAsString(_rawOctets), e.Message));
} }
catch (EncoderFallbackException e) catch (EncoderFallbackException)
{ {
// If utf8Encoding.GetBytes() fails // If utf8Encoding.GetBytes() fails
//if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, decodedString, e.Message)); //if (NetEventSource.IsEnabled) NetEventSource.Error(this, SR.Format(SR.net_log_listener_cant_convert_to_utf8, decodedString, e.Message));

View File

@ -299,7 +299,7 @@ namespace SocketHttpListener
} }
OnError.Emit(this, new ErrorEventArgs(message)); OnError.Emit(this, new ErrorEventArgs(message));
} }
catch (Exception ex) catch (Exception)
{ {
} }
} }
@ -310,7 +310,7 @@ namespace SocketHttpListener
{ {
OnError.Emit(this, new ErrorEventArgs(message)); OnError.Emit(this, new ErrorEventArgs(message));
} }
catch (Exception ex) catch (Exception)
{ {
} }
} }
@ -423,7 +423,7 @@ namespace SocketHttpListener
private bool processPingFrame(WebSocketFrame frame) private bool processPingFrame(WebSocketFrame frame)
{ {
var mask = Mask.Unmask; //var mask = Mask.Unmask;
return true; return true;
} }
@ -796,4 +796,4 @@ namespace SocketHttpListener
#endregion #endregion
} }
} }