aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2020-06-28 09:08:34 +0000
committerPJ Fanning <fanningpj@apache.org>2020-06-28 09:08:34 +0000
commit02cebfc3127696b58495bd59557775a935dcfa84 (patch)
treefe766eee3f7af0b6358fcdf0896bf75dfd11a5ee /src/java/org
parent241c7e2bb2ba90b3e47d154e61e915f06945f7bc (diff)
downloadpoi-02cebfc3127696b58495bd59557775a935dcfa84.tar.gz
poi-02cebfc3127696b58495bd59557775a935dcfa84.zip
remove some more deprecated code
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1879299 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org')
-rw-r--r--src/java/org/apache/poi/hssf/util/CellReference.java49
-rw-r--r--src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java143
2 files changed, 0 insertions, 192 deletions
diff --git a/src/java/org/apache/poi/hssf/util/CellReference.java b/src/java/org/apache/poi/hssf/util/CellReference.java
deleted file mode 100644
index 3360d5f978..0000000000
--- a/src/java/org/apache/poi/hssf/util/CellReference.java
+++ /dev/null
@@ -1,49 +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.poi.hssf.util;
-
-/**
- * Common conversion functions between Excel style A1, C27 style
- * cell references, and POI usermodel style row=0, column=0
- * style references.
- *
- * @deprecated POI 4.0.0-SNAPSHOT. Use {@link org.apache.poi.ss.util.CellReference} instead.
- * Actually the replacement CellReference was added earlier, but the deprecation notice
- * was added only in 4.0.0-SNAPSHOT.
- */
-public final class CellReference extends org.apache.poi.ss.util.CellReference {
- /**
- * Create an cell ref from a string representation. Sheet names containing special characters should be
- * delimited and escaped as per normal syntax rules for formulas.
- */
- public CellReference(String cellRef) {
- super(cellRef);
- }
-
- public CellReference(int pRow, int pCol) {
- super(pRow, pCol, true, true);
- }
-
- public CellReference(int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {
- super(null, pRow, pCol, pAbsRow, pAbsCol);
- }
-
- public CellReference(String pSheetName, int pRow, int pCol, boolean pAbsRow, boolean pAbsCol) {
- super(pSheetName, pRow, pCol, pAbsRow, pAbsCol);
- }
-}
diff --git a/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java b/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
deleted file mode 100644
index 46eff91edf..0000000000
--- a/src/java/org/apache/poi/hssf/util/HSSFRegionUtil.java
+++ /dev/null
@@ -1,143 +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.poi.hssf.util;
-
-import org.apache.poi.hssf.usermodel.HSSFSheet;
-import org.apache.poi.hssf.usermodel.HSSFWorkbook;
-import org.apache.poi.ss.usermodel.BorderStyle;
-import org.apache.poi.ss.util.CellRangeAddress;
-import org.apache.poi.ss.util.RegionUtil;
-import org.apache.poi.util.Removal;
-
-/**
- * Various utility functions that make working with a region of cells easier.
- * @deprecated POI 4.0.0
- * @see RegionUtil
- */
-@Removal(version="4.2")
-public final class HSSFRegionUtil {
-
- private HSSFRegionUtil() {
- // no instances of this class
- }
-
- /**
- * Sets the left border for a region of cells by manipulating the cell style
- * of the individual cells on the left
- *
- * @param border The new border
- * @param region The region that should have the border
- * @param workbook The workbook that the region is on.
- * @param sheet The sheet that the region is on.
- */
- public static void setBorderLeft(int border, CellRangeAddress region, HSSFSheet sheet,
- HSSFWorkbook workbook) {
- RegionUtil.setBorderLeft(BorderStyle.valueOf((short)border), region, sheet);
- }
-
- /**
- * Sets the leftBorderColor attribute of the HSSFRegionUtil object
- *
- * @param color The color of the border
- * @param region The region that should have the border
- * @param workbook The workbook that the region is on.
- * @param sheet The sheet that the region is on.
- */
- public static void setLeftBorderColor(int color, CellRangeAddress region, HSSFSheet sheet,
- HSSFWorkbook workbook) {
- RegionUtil.setLeftBorderColor(color, region, sheet);
- }
-
- /**
- * Sets the borderRight attribute of the HSSFRegionUtil object
- *
- * @param border The new border
- * @param region The region that should have the border
- * @param workbook The workbook that the region is on.
- * @param sheet The sheet that the region is on.
- */
- public static void setBorderRight(int border, CellRangeAddress region, HSSFSheet sheet,
- HSSFWorkbook workbook) {
- RegionUtil.setBorderRight(BorderStyle.valueOf((short)border), region, sheet);
- }
-
- /**
- * Sets the rightBorderColor attribute of the HSSFRegionUtil object
- *
- * @param color The color of the border
- * @param region The region that should have the border
- * @param workbook The workbook that the region is on.
- * @param sheet The sheet that the region is on.
- */
- public static void setRightBorderColor(int color, CellRangeAddress region, HSSFSheet sheet,
- HSSFWorkbook workbook) {
- RegionUtil.setRightBorderColor(color, region, sheet);
- }
-
- /**
- * Sets the borderBottom attribute of the HSSFRegionUtil object
- *
- * @param border The new border
- * @param region The region that should have the border
- * @param workbook The workbook that the region is on.
- * @param sheet The sheet that the region is on.
- */
- public static void setBorderBottom(int border, CellRangeAddress region, HSSFSheet sheet,
- HSSFWorkbook workbook) {
- RegionUtil.setBorderBottom(BorderStyle.valueOf((short)border), region, sheet);
- }
-
- /**
- * Sets the bottomBorderColor attribute of the HSSFRegionUtil object
- *
- * @param color The color of the border
- * @param region The region that should have the border
- * @param workbook The workbook that the region is on.
- * @param sheet The sheet that the region is on.
- */
- public static void setBottomBorderColor(int color, CellRangeAddress region, HSSFSheet sheet,
- HSSFWorkbook workbook) {
- RegionUtil.setBottomBorderColor(color, region, sheet);
- }
-
- /**
- * Sets the borderBottom attribute of the HSSFRegionUtil object
- *
- * @param border The new border
- * @param region The region that should have the border
- * @param workbook The workbook that the region is on.
- * @param sheet The sheet that the region is on.
- */
- public static void setBorderTop(int border, CellRangeAddress region, HSSFSheet sheet,
- HSSFWorkbook workbook) {
- RegionUtil.setBorderTop(BorderStyle.valueOf((short)border), region, sheet);
- }
-
- /**
- * Sets the topBorderColor attribute of the HSSFRegionUtil object
- *
- * @param color The color of the border
- * @param region The region that should have the border
- * @param workbook The workbook that the region is on.
- * @param sheet The sheet that the region is on.
- */
- public static void setTopBorderColor(int color, CellRangeAddress region, HSSFSheet sheet,
- HSSFWorkbook workbook) {
- RegionUtil.setTopBorderColor(color, region, sheet);
- }
-}