Ignore:
Timestamp:
2021-07-13T23:56:50+02:00 (3 years ago)
Author:
Don-vip
Message:

remove deprecated stuff not used by plugins

Location:
trunk/src/org/openstreetmap/josm/actions
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/AbstractInfoAction.java

    r16553 r18014  
    5151            String toolbarId, boolean installAdapters) {
    5252        super(name, iconName, tooltip, shortcut, register, toolbarId, installAdapters);
    53     }
    54 
    55     /**
    56      * Asks user confirmation before launching a large number of browser windows.
    57      * @param numBrowsers the number of browser windows to open
    58      * @return {@code true} if the user confirms, {@code false} otherwise
    59      * @deprecated use {@link OpenBrowserAction#confirmLaunchMultiple(int)}
    60      */
    61     @Deprecated
    62     public static boolean confirmLaunchMultiple(int numBrowsers) {
    63         return OpenBrowserAction.confirmLaunchMultiple(numBrowsers);
    6453    }
    6554
  • trunk/src/org/openstreetmap/josm/actions/OpenFileAction.java

    r17556 r18014  
    8383        File[] files = fc.getSelectedFiles();
    8484        OpenFileTask task = new OpenFileTask(Arrays.asList(files), fc.getFileFilter());
    85         task.setRecordHistory(true);
     85        task.setOptions(Options.RECORD_HISTORY);
    8686        MainApplication.worker.submit(task);
    8787    }
     
    101101    public static Future<?> openFiles(List<File> fileList) {
    102102        return openFiles(fileList, (Options[]) null);
    103     }
    104 
    105     /**
    106      * Open a list of files. The complete list will be passed to batch importers.
    107      * @param fileList A list of files
    108      * @param recordHistory {@code true} to save filename in history (default: false)
    109      * @return the future task
    110      * @since 11986 (return task)
    111      * @deprecated Since 17534, use {@link OpenFileAction#openFiles(List, Options...)} with {@link Options#RECORD_HISTORY} instead.
    112      */
    113     @Deprecated
    114     public static Future<?> openFiles(List<File> fileList, boolean recordHistory) {
    115         Options[] options = recordHistory ? new Options[] {Options.RECORD_HISTORY} : null;
    116         return openFiles(fileList, options);
    117103    }
    118104
     
    181167        public OpenFileTask(List<File> files, FileFilter fileFilter) {
    182168            this(files, fileFilter, tr("Opening files"));
    183         }
    184 
    185         /**
    186          * Sets whether to save filename in history (for list of recently opened files).
    187          * @param recordHistory {@code true} to save filename in history (default: false)
    188          * @deprecated since 17534 (use {@link #setOptions} instead).
    189          */
    190         @Deprecated
    191         public void setRecordHistory(boolean recordHistory) {
    192             if (recordHistory) {
    193                 this.options.add(Options.RECORD_HISTORY);
    194             } else {
    195                 this.options.remove(Options.RECORD_HISTORY);
    196             }
    197169        }
    198170
  • trunk/src/org/openstreetmap/josm/actions/SimplifyWayAction.java

    r17188 r18014  
    325325     * @param w the way to simplify
    326326     * @return The sequence of commands to run
    327      * @since 6411
    328      * @deprecated Replaced by {@link #createSimplifyCommand(Way)}. You can also use {@link #simplifyWays(List, double)} directly.
    329      */
    330     @Deprecated
    331     public final SequenceCommand simplifyWay(Way w) {
    332         return createSimplifyCommand(w);
    333     }
    334 
    335     /**
    336      * Creates the SequenceCommand to simplify a way with a given threshold.
    337      *
    338      * @param w the way to simplify
    339      * @param threshold the max error threshold
    340      * @return The sequence of commands to run
    341      * @since 6411
    342      * @deprecated Replaced by {@link #createSimplifyCommand(Way, double)}. You can also use {@link #simplifyWays(List, double)} directly.
    343      */
    344     @Deprecated
    345     public static SequenceCommand simplifyWay(Way w, double threshold) {
    346         return createSimplifyCommand(w, threshold);
    347     }
    348 
    349     /**
    350      * Creates the SequenceCommand to simplify a way with default threshold.
    351      *
    352      * @param w the way to simplify
    353      * @return The sequence of commands to run
    354327     * @since 15419
    355328     */
Note: See TracChangeset for help on using the changeset viewer.