more code cleanupi
Some checks reported errors
studiorailgun/Renderer/pipeline/head Something is wrong with the build of this commit
Some checks reported errors
studiorailgun/Renderer/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
parent
f5ff55898d
commit
77a564b0e5
@ -1687,6 +1687,7 @@ Dynamic html-defined menus support button elements that call a client hook when
|
||||
Dynamic menu navigation between windows
|
||||
Starting formatting npc intro page
|
||||
Code cleanup
|
||||
More code cleanup
|
||||
|
||||
|
||||
|
||||
|
||||
@ -13,6 +13,7 @@ import electrosphere.controls.ControlHandler.ControlsState;
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.engine.signal.Signal.SignalType;
|
||||
import electrosphere.entity.Entity;
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.renderer.ui.elements.Div;
|
||||
import electrosphere.renderer.ui.elements.Window;
|
||||
import electrosphere.renderer.ui.elementtypes.ContainerElement.YogaAlignment;
|
||||
@ -79,8 +80,7 @@ public class DialogMenuGenerator {
|
||||
Node bodyNode = doc.getElementsByTag("body").first();
|
||||
container.addChild(HtmlParser.parseJSoup(bodyNode));
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
rVal.addChild(container);
|
||||
|
||||
|
||||
@ -37,7 +37,6 @@ public class ShooterTree implements BehaviorTree {
|
||||
|
||||
@Override
|
||||
public void simulate(float deltaTime) {
|
||||
// TODO Auto-generated method stub
|
||||
switch(state){
|
||||
case ATTACK: {
|
||||
//
|
||||
|
||||
@ -189,7 +189,6 @@ public class ClientStanceComponent implements BehaviorTree {
|
||||
|
||||
@Override
|
||||
public void simulate(float deltaTime) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'simulate'");
|
||||
}
|
||||
|
||||
|
||||
@ -104,7 +104,6 @@ public class ServerStanceComponent implements BehaviorTree {
|
||||
|
||||
@Override
|
||||
public void simulate(float deltaTime) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'simulate'");
|
||||
}
|
||||
|
||||
|
||||
@ -5,6 +5,7 @@ import java.io.IOException;
|
||||
import java.nio.file.Files;
|
||||
|
||||
import electrosphere.engine.Globals;
|
||||
import electrosphere.logger.LoggerInterface;
|
||||
import electrosphere.util.Utilities;
|
||||
|
||||
/**
|
||||
@ -75,8 +76,7 @@ public class NetConfig {
|
||||
try {
|
||||
Globals.netConfig = Utilities.deserialize(Files.readString(file.toPath()), NetConfig.class);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -392,7 +392,6 @@ public class HomogenousInstanceData implements InstanceData {
|
||||
|
||||
@Override
|
||||
public void destroy() {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'destroy'");
|
||||
}
|
||||
|
||||
|
||||
@ -179,7 +179,6 @@ public class FontUtils {
|
||||
// imgFile.getParentFile().mkdirs();
|
||||
// ImageIO.write(image, "png", Files.newOutputStream(imgFile.toPath()));
|
||||
// } catch (IOException e) {
|
||||
// // TODO Auto-generated catch block
|
||||
// e.printStackTrace();
|
||||
// }
|
||||
|
||||
|
||||
@ -291,8 +291,7 @@ public class ScriptEngine extends SignalServiceImpl {
|
||||
try {
|
||||
fileChecksumMap.put(normalizedPath,FileUtils.getChecksum(fileContent));
|
||||
} catch (NoSuchAlgorithmException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerScripts.ERROR(e);
|
||||
}
|
||||
|
||||
//store on script side
|
||||
|
||||
@ -147,8 +147,7 @@ public class ServerBlockChunkDiskMap {
|
||||
inflaterInputStream.close();
|
||||
rawData = out.toByteArray();
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
//parse
|
||||
if(rawData != null){
|
||||
@ -256,8 +255,7 @@ public class ServerBlockChunkDiskMap {
|
||||
//save to the map of filenames
|
||||
worldPosFileMap.put(chunkKey,fileName);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
lock.unlock();
|
||||
}
|
||||
|
||||
@ -97,8 +97,7 @@ public class FluidDiskMap {
|
||||
inflaterInputStream.close();
|
||||
rawData = out.toByteArray();
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
//parse
|
||||
if(rawData != null){
|
||||
@ -197,8 +196,7 @@ public class FluidDiskMap {
|
||||
//save to the map of filenames
|
||||
worldPosFileMap.put(chunkKey,fileName);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -14,7 +14,6 @@ public class DefaultFluidGenerator implements FluidGenerator {
|
||||
|
||||
@Override
|
||||
public void setModel(FluidModel model) {
|
||||
// TODO Auto-generated method stub
|
||||
throw new UnsupportedOperationException("Unimplemented method 'setModel'");
|
||||
}
|
||||
|
||||
|
||||
@ -178,8 +178,7 @@ public class ChunkDiskMap {
|
||||
inflaterInputStream.close();
|
||||
rawData = out.toByteArray();
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
//parse
|
||||
if(rawData != null){
|
||||
@ -267,8 +266,7 @@ public class ChunkDiskMap {
|
||||
//save to the map of filenames
|
||||
worldPosFileMap.put(chunkKey,fileName);
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
lock.unlock();
|
||||
}
|
||||
|
||||
@ -379,8 +379,7 @@ public class FileUtils {
|
||||
try {
|
||||
rVal = Files.readAllBytes(FileUtils.getSaveFile(saveName,sanitizedFilePath).toPath());
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
return rVal;
|
||||
}
|
||||
@ -474,8 +473,7 @@ public class FileUtils {
|
||||
try {
|
||||
Files.delete(file.toPath());
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
LoggerInterface.loggerFileIO.ERROR(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -24,7 +24,6 @@ public class TestRenderingUtils {
|
||||
Files.createDirectories(new File(existingRenderPath).toPath());
|
||||
ImageIO.write(screenshot, "png", new File(existingRenderPath));
|
||||
} catch (IOException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user