OpenHome.Git.TreeModifiable.Delete C# (CSharp) Method

Delete() public method

public Delete ( string aName ) : void
aName string
return void
        public void Delete(string aName)
        {
            CheckWritten();

            CheckDelete(aName);

            if (iModeChangeList.ContainsKey(aName))
            {
                throw (new GitException(aName + " already staged for mode change"));
            }

            if (Find(aName) == null)
            {
                throw (new GitException(aName + " not found"));
            }

            iModified = true;

            iDeleteList.Add(aName);
        }