You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2020/04/30 17:28:33 UTC

[isis] branch master updated: ISIS-2340: remove unused code

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git


The following commit(s) were added to refs/heads/master by this push:
     new e0e4d07  ISIS-2340: remove unused code
e0e4d07 is described below

commit e0e4d0738cd2573c398763b46a222a16fb9d8771
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Apr 30 19:28:19 2020 +0200

    ISIS-2340: remove unused code
---
 .../apache/isis/core/commons/collections/Can.java  |  6 ---
 .../memento/ObjectMementoForUnspecified.java       | 52 ----------------------
 2 files changed, 58 deletions(-)

diff --git a/core/commons/src/main/java/org/apache/isis/core/commons/collections/Can.java b/core/commons/src/main/java/org/apache/isis/core/commons/collections/Can.java
index 1d8e947..7a341bc 100644
--- a/core/commons/src/main/java/org/apache/isis/core/commons/collections/Can.java
+++ b/core/commons/src/main/java/org/apache/isis/core/commons/collections/Can.java
@@ -539,11 +539,5 @@ public interface Can<T> extends Iterable<T>, Serializable {
      * @return a non-null array, containing the elements of this Can
      */
     T[] toArray(Class<T> elementType);
-
-// debug    
-//    public static boolean isPresent(Object x) {
-//        if(x==null) throw _Exceptions.illegalArgument("putting null into a can");
-//        return x!=null;
-//    }
     
 }
diff --git a/core/webapp/src/main/java/org/apache/isis/core/webapp/context/memento/ObjectMementoForUnspecified.java b/core/webapp/src/main/java/org/apache/isis/core/webapp/context/memento/ObjectMementoForUnspecified.java
deleted file mode 100644
index 4d8ee87..0000000
--- a/core/webapp/src/main/java/org/apache/isis/core/webapp/context/memento/ObjectMementoForUnspecified.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you 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 org.apache.isis.core.webapp.context.memento;
-
-import org.apache.isis.applib.services.bookmark.Bookmark;
-import org.apache.isis.core.metamodel.spec.ObjectSpecId;
-
-import lombok.RequiredArgsConstructor;
-
-@RequiredArgsConstructor
-public class ObjectMementoForUnspecified implements ObjectMemento {
-
-    private static final long serialVersionUID = 1L;
-    
-    @Override
-    public String asString() {
-        return getObjectSpecId().asString();
-    }
-
-    @Override
-    public Bookmark asBookmarkIfSupported() {
-        return null;
-    }
-
-    @Override
-    public Bookmark asHintingBookmarkIfSupported() {
-        return null;
-    }
-
-    @Override
-    public ObjectSpecId getObjectSpecId() {
-        return ObjectSpecId.of("unspecified");
-    }
-
-
-}