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

Remove unused code.

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