public void removeSrcFile()

in common/src/main/java/jetbrains/buildServer/torrent/seeder/TorrentFilesDB.java [208:221]


  public void removeSrcFile(@NotNull File srcFile) {
    String path = myPathConverter.convertToPath(srcFile);
    FileInfo removedTorrent;
    synchronized (myFile2TorrentMap) {
      removedTorrent = myFile2TorrentMap.get().remove(new FileInfo(path));
      if (removedTorrent != null) {
        myIsDBChanged = true;
      }
    }

    if (removedTorrent != null) {
      notifyOnRemove(new AbstractMap.SimpleEntry<File, File>(srcFile, removedTorrent.getFile()));
    }
  }