diff --git a/platform/vcs-api/src/com/intellij/openapi/vcs/changes/TransparentlyFailedValue.java b/platform/vcs-api/src/com/intellij/openapi/vcs/changes/TransparentlyFailedValue.java deleted file mode 100644 index 5ab8d9609087..000000000000 --- a/platform/vcs-api/src/com/intellij/openapi/vcs/changes/TransparentlyFailedValue.java +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2000-2011 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.intellij.openapi.vcs.changes; - -/** - * @author irengrig - * Date: 7/5/11 - * Time: 3:35 PM - */ -public class TransparentlyFailedValue implements TransparentlyFailedValueI { - private T t; - private E e; - private RuntimeException myRuntime; - - @Override - public void set(final T t) { - this.t = t; - } - - @Override - public void fail(final E e) { - this.e = e; - } - - @Override - public void failRuntime(final RuntimeException e) { - myRuntime = e; - } - - @Override - public T get() throws E { - if (this.e != null) throw this.e; - if (myRuntime != null) throw myRuntime; - return this.t; - } - - public void take(final TransparentlyFailedValue value) { - this.t = value.t; - this.e = value.e; - myRuntime = value.myRuntime; - } - - @Override - public boolean haveSomething() { - return e != null || myRuntime != null || t != null; - } -} diff --git a/platform/vcs-api/src/com/intellij/openapi/vcs/changes/TransparentlyFailedValueI.java b/platform/vcs-api/src/com/intellij/openapi/vcs/changes/TransparentlyFailedValueI.java deleted file mode 100644 index 7c867d6cbbd4..000000000000 --- a/platform/vcs-api/src/com/intellij/openapi/vcs/changes/TransparentlyFailedValueI.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Copyright 2000-2012 JetBrains s.r.o. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.intellij.openapi.vcs.changes; - -/** - * Created with IntelliJ IDEA. - * User: Irina.Chernushina - * Date: 8/30/12 - * Time: 8:18 PM - */ -public interface TransparentlyFailedValueI { - void set(T t); - - void fail(E e); - - T get() throws E; - - void failRuntime(RuntimeException e); - - boolean haveSomething(); -}