提交 e01e701d authored 作者: Thomas Mueller's avatar Thomas Mueller

Remove unused code.

上级 30ed9adc
...@@ -90,18 +90,6 @@ public interface DbObject { ...@@ -90,18 +90,6 @@ public interface DbObject {
*/ */
int AGGREGATE = 14; int AGGREGATE = 14;
/**
* Tell the object that is was modified.
*/
void setModified();
/**
* Get the last modification id.
*
* @return the modification id
*/
long getModificationId();
/** /**
* Get the SQL name of this object (may be quoted). * Get the SQL name of this object (may be quoted).
* *
......
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
package org.h2.expression; package org.h2.expression;
import org.h2.engine.Session; import org.h2.engine.Session;
import org.h2.value.Value;
import org.h2.value.ValueResultSet; import org.h2.value.ValueResultSet;
/** /**
...@@ -54,14 +53,6 @@ public interface FunctionCall { ...@@ -54,14 +53,6 @@ public interface FunctionCall {
*/ */
Expression optimize(Session session); Expression optimize(Session session);
/**
* Calculate the result.
*
* @param session the session
* @return the result
*/
Value getValue(Session session);
/** /**
* Get the function arguments. * Get the function arguments.
* *
......
...@@ -278,10 +278,6 @@ public class MultiVersionIndex implements Index { ...@@ -278,10 +278,6 @@ public class MultiVersionIndex implements Index {
return base.getId(); return base.getId();
} }
public long getModificationId() {
return base.getModificationId();
}
public String getName() { public String getName() {
return base.getName(); return base.getName();
} }
...@@ -298,10 +294,6 @@ public class MultiVersionIndex implements Index { ...@@ -298,10 +294,6 @@ public class MultiVersionIndex implements Index {
base.setComment(comment); base.setComment(comment);
} }
public void setModified() {
base.setModified();
}
public void setTemporary(boolean temporary) { public void setTemporary(boolean temporary) {
base.setTemporary(temporary); base.setTemporary(temporary);
} }
......
...@@ -222,15 +222,6 @@ public abstract class FileSystem { ...@@ -222,15 +222,6 @@ public abstract class FileSystem {
*/ */
public abstract void copy(String source, String target); public abstract void copy(String source, String target);
/**
* Create all required directories.
*
* @param directoryName the directory name
*/
public void mkdirs(String directoryName) {
createDirs(directoryName + "/x");
}
/** /**
* Create all required directories that are required for this file. * Create all required directories that are required for this file.
* *
......
...@@ -185,7 +185,7 @@ public class TestFileSystem extends TestBase { ...@@ -185,7 +185,7 @@ public class TestFileSystem extends TestBase {
for (String s : fs.listFiles(fsBase)) { for (String s : fs.listFiles(fsBase)) {
fs.delete(s); fs.delete(s);
} }
fs.mkdirs(fsBase + "/test"); fs.createDirs(fsBase + "/test/x");
fs.delete(fsBase + "/test"); fs.delete(fsBase + "/test");
fs.delete(fsBase + "/test2"); fs.delete(fsBase + "/test2");
assertTrue(fs.createNewFile(fsBase + "/test")); assertTrue(fs.createNewFile(fsBase + "/test"));
......
...@@ -355,7 +355,7 @@ public class FtpControl extends Thread { ...@@ -355,7 +355,7 @@ public class FtpControl extends Thread {
boolean ok = false; boolean ok = false;
if (!readonly) { if (!readonly) {
try { try {
fs.mkdirs(fileName); fs.createDirs(fileName + "/x");
reply(257, StringUtils.quoteIdentifier(param) + " directory"); reply(257, StringUtils.quoteIdentifier(param) + " directory");
ok = true; ok = true;
} catch (Exception e) { } catch (Exception e) {
......
...@@ -354,7 +354,7 @@ public class FtpServer extends Tool implements Service { ...@@ -354,7 +354,7 @@ public class FtpServer extends Tool implements Service {
public void start() { public void start() {
fs = FileSystem.getInstance(root); fs = FileSystem.getInstance(root);
root = fs.getCanonicalPath(root); root = fs.getCanonicalPath(root);
fs.mkdirs(root); fs.createDirs(root + "/x");
serverSocket = NetUtils.createServerSocket(port, false); serverSocket = NetUtils.createServerSocket(port, false);
port = serverSocket.getLocalPort(); port = serverSocket.getLocalPort();
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论