Propagate EffectiveModelContext to more places
[yangtools.git] / yang / yang-parser-impl / src / main / java / org / opendaylight / yangtools / yang / parser / repo / YangTextSchemaContextResolver.java
index 24cb91f87b55348daf113d91b22e293207ea5da4..28652a27658dbed433f3eb2eb306ba81195a43d6 100644 (file)
@@ -33,7 +33,6 @@ import java.util.concurrent.atomic.AtomicReference;
 import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.common.Revision;
 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
-import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 import org.opendaylight.yangtools.yang.model.parser.api.YangParserFactory;
 import org.opendaylight.yangtools.yang.model.parser.api.YangSyntaxErrorException;
 import org.opendaylight.yangtools.yang.model.repo.api.EffectiveModelContextFactory;
@@ -270,31 +269,6 @@ public final class YangTextSchemaContextResolver implements AutoCloseable, Schem
         return sc;
     }
 
-    /**
-     * Try to parse all currently available yang files and build new schema context.
-     *
-     * @return new schema context iif there is at least 1 yang file registered and new schema context was successfully
-     *         built.
-     * @deprecated Use {@link #getEffectiveModelContext()} instead.
-     */
-    @Deprecated(forRemoval = true)
-    public Optional<? extends SchemaContext> getSchemaContext() {
-        return getEffectiveModelContext();
-    }
-
-    /**
-     * Try to parse all currently available yang files and build new schema context depending on specified parsing mode.
-     *
-     * @param statementParserMode mode of statement parser
-     * @return new schema context iif there is at least 1 yang file registered and
-     *         new schema context was successfully built.
-     * @deprecated Use {@link #getEffectiveModelContext(StatementParserMode)} instead.
-     */
-    @Deprecated(forRemoval = true)
-    public Optional<? extends SchemaContext> getSchemaContext(final StatementParserMode statementParserMode) {
-        return getEffectiveModelContext(statementParserMode);
-    }
-
     @Override
     public synchronized FluentFuture<YangTextSchemaSource> getSource(
             final SourceIdentifier sourceIdentifier) {