@@ -295,106 +295,6 @@ public void OnAfterDeserialize()
295
295
Add ( remote , branchesDictionary ) ;
296
296
}
297
297
}
298
-
299
- IEnumerator < KeyValuePair < string , IDictionary < string , ConfigBranch > > > IEnumerable < KeyValuePair < string , IDictionary < string , ConfigBranch > > > . GetEnumerator ( )
300
- {
301
- throw new NotImplementedException ( ) ;
302
- //return AsDictionary
303
- // .Select(pair => new KeyValuePair<string, IDictionary<string, ConfigBranch>>(pair.Key, pair.Value.AsDictionary))
304
- // .GetEnumerator();
305
- }
306
-
307
- void ICollection < KeyValuePair < string , IDictionary < string , ConfigBranch > > > . Add ( KeyValuePair < string , IDictionary < string , ConfigBranch > > item )
308
- {
309
- throw new NotImplementedException ( ) ;
310
- //Guard.ArgumentNotNull(item, "item");
311
- //Guard.ArgumentNotNull(item.Value, "item.Value");
312
- //
313
- //var serializableDictionary = item.Value as SerializableDictionary<string, ConfigBranch>;
314
- //if (serializableDictionary == null)
315
- //{
316
- // serializableDictionary = new SerializableDictionary<string, ConfigBranch>(item.Value);
317
- //}
318
- //
319
- //Add(item.Key, serializableDictionary);
320
- }
321
-
322
- bool ICollection < KeyValuePair < string , IDictionary < string , ConfigBranch > > > . Contains ( KeyValuePair < string , IDictionary < string , ConfigBranch > > item )
323
- {
324
- throw new NotImplementedException ( ) ;
325
- }
326
-
327
- void ICollection < KeyValuePair < string , IDictionary < string , ConfigBranch > > > . CopyTo ( KeyValuePair < string , IDictionary < string , ConfigBranch > > [ ] array , int arrayIndex )
328
- {
329
- throw new NotImplementedException ( ) ;
330
- }
331
-
332
- bool ICollection < KeyValuePair < string , IDictionary < string , ConfigBranch > > > . Remove ( KeyValuePair < string , IDictionary < string , ConfigBranch > > item )
333
- {
334
- throw new NotImplementedException ( ) ;
335
- }
336
-
337
- bool ICollection < KeyValuePair < string , IDictionary < string , ConfigBranch > > > . IsReadOnly
338
- {
339
- get { throw new NotImplementedException ( ) ; }
340
- }
341
-
342
- void IDictionary < string , IDictionary < string , ConfigBranch > > . Add ( string key , IDictionary < string , ConfigBranch > value )
343
- {
344
- throw new NotImplementedException ( ) ;
345
- }
346
-
347
- bool IDictionary < string , IDictionary < string , ConfigBranch > > . TryGetValue ( string key , out IDictionary < string , ConfigBranch > value )
348
- {
349
- value = null ;
350
-
351
- Dictionary < string , ConfigBranch > branches ;
352
- if ( TryGetValue ( key , out branches ) )
353
- {
354
- value = branches ;
355
- return true ;
356
- }
357
-
358
- return false ;
359
- }
360
-
361
- IDictionary < string , ConfigBranch > IDictionary < string , IDictionary < string , ConfigBranch > > . this [ string key ]
362
- {
363
- get
364
- {
365
- throw new NotImplementedException ( ) ;
366
- //var dictionary = (IDictionary<string, IDictionary<string, ConfigBranch>>)this;
367
- //IDictionary<string, ConfigBranch> value;
368
- //if (!dictionary.TryGetValue(key, out value))
369
- //{
370
- // throw new KeyNotFoundException();
371
- //}
372
- //
373
- //return value;
374
- }
375
- set
376
- {
377
- throw new NotImplementedException ( ) ;
378
- //var dictionary = (IDictionary<string, IDictionary<string, ConfigBranch>>)this;
379
- //dictionary.Add(key, value);
380
- }
381
- }
382
-
383
- ICollection < string > IDictionary < string , IDictionary < string , ConfigBranch > > . Keys
384
- {
385
- get
386
- {
387
- throw new NotImplementedException ( ) ;
388
- }
389
- }
390
-
391
- ICollection < IDictionary < string , ConfigBranch > > IDictionary < string , IDictionary < string , ConfigBranch > > . Values
392
- {
393
- get
394
- {
395
- return Values . Cast < IDictionary < string , ConfigBranch > > ( ) . ToArray ( ) ;
396
- }
397
- }
398
298
}
399
299
400
300
[ Serializable ]
@@ -668,7 +568,7 @@ public void AddLocalBranch(string branch)
668
568
669
569
public void AddRemoteBranch ( string remote , string branch )
670
570
{
671
- IDictionary < string , ConfigBranch > branchList ;
571
+ Dictionary < string , ConfigBranch > branchList ;
672
572
if ( RemoteConfigBranches . TryGetValue ( remote , out branchList ) )
673
573
{
674
574
if ( ! branchList . ContainsKey ( branch ) )
@@ -691,7 +591,7 @@ public void AddRemoteBranch(string remote, string branch)
691
591
692
592
public void RemoveRemoteBranch ( string remote , string branch )
693
593
{
694
- IDictionary < string , ConfigBranch > branchList ;
594
+ Dictionary < string , ConfigBranch > branchList ;
695
595
if ( RemoteConfigBranches . TryGetValue ( remote , out branchList ) )
696
596
{
697
597
if ( branchList . ContainsKey ( branch ) )
0 commit comments