assert: LibraryImpl.commit
authorDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Thu, 11 Feb 2010 09:06:33 +0000 (12:06 +0300)
committerDmitry Avdeev <Dmitry.Avdeev@jetbrains.com>
Thu, 11 Feb 2010 09:06:33 +0000 (12:06 +0300)
platform/lang-impl/src/com/intellij/openapi/roots/impl/libraries/LibraryImpl.java

index 6449df55361dccb2771ce284dbf82d5ccad829bf..957380ddb4eae7cc90e8a2496e5ed44729f3d6e9 100644 (file)
@@ -410,9 +410,6 @@ public class LibraryImpl implements LibraryEx.ModifiableModelEx, LibraryEx {
     if (myLibraryTable != null) {
       ApplicationManager.getApplication().assertWriteAccessAllowed();
     }
-    else if (myRootModel != null) {
-      LOG.assertTrue(myRootModel.isWritable());
-    }
     if (!Comparing.equal(fromModel.myName, myName)) {
       myName = fromModel.myName;
       if (myLibraryTable instanceof LibraryTableBase) {