@@ -15,7 +15,6 @@ public class Blob : GitObject
15
15
{
16
16
private readonly ILazy < Int64 > lazySize ;
17
17
private readonly ILazy < bool > lazyIsBinary ;
18
- private readonly ILazy < bool > lazyIsMissing ;
19
18
20
19
/// <summary>
21
20
/// Needed for mocking purposes.s
@@ -26,9 +25,8 @@ protected Blob()
26
25
internal Blob ( Repository repo , ObjectId id )
27
26
: base ( repo , id )
28
27
{
29
- lazySize = GitObjectLazyGroup . Singleton ( repo , id , Proxy . git_blob_rawsize ) ;
30
- lazyIsBinary = GitObjectLazyGroup . Singleton ( repo , id , Proxy . git_blob_is_binary ) ;
31
- lazyIsMissing = GitObjectLazyGroup . Singleton ( repo , id , handle => handle == null , throwsIfMissing : false ) ;
28
+ lazySize = GitObjectLazyGroup . Singleton ( repo , id , Proxy . git_blob_rawsize , throwIfMissing : true ) ;
29
+ lazyIsBinary = GitObjectLazyGroup . Singleton ( repo , id , Proxy . git_blob_is_binary , throwIfMissing : true ) ;
32
30
}
33
31
34
32
/// <summary>
@@ -47,12 +45,6 @@ internal Blob(Repository repo, ObjectId id)
47
45
/// <exception cref="NotFoundException">Throws if blob is missing</exception>
48
46
public virtual bool IsBinary => lazyIsBinary . Value ;
49
47
50
-
51
- /// <summary>
52
- /// Determine if the blob content is missing ( with partially cloned repositories)
53
- /// </summary>
54
- public virtual bool IsMissing => lazyIsMissing . Value ;
55
-
56
48
/// <summary>
57
49
/// Gets the blob content in a <see cref="Stream"/>.
58
50
/// </summary>
0 commit comments