more code cleanupi
Some checks reported errors
studiorailgun/Renderer/pipeline/head Something is wrong with the build of this commit

This commit is contained in:
austin 2025-05-05 22:21:19 -04:00
parent f5ff55898d
commit 77a564b0e5
15 changed files with 14 additions and 29 deletions

View File

@ -1687,6 +1687,7 @@ Dynamic html-defined menus support button elements that call a client hook when
Dynamic menu navigation between windows Dynamic menu navigation between windows
Starting formatting npc intro page Starting formatting npc intro page
Code cleanup Code cleanup
More code cleanup

View File

@ -13,6 +13,7 @@ import electrosphere.controls.ControlHandler.ControlsState;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.engine.signal.Signal.SignalType; import electrosphere.engine.signal.Signal.SignalType;
import electrosphere.entity.Entity; import electrosphere.entity.Entity;
import electrosphere.logger.LoggerInterface;
import electrosphere.renderer.ui.elements.Div; import electrosphere.renderer.ui.elements.Div;
import electrosphere.renderer.ui.elements.Window; import electrosphere.renderer.ui.elements.Window;
import electrosphere.renderer.ui.elementtypes.ContainerElement.YogaAlignment; import electrosphere.renderer.ui.elementtypes.ContainerElement.YogaAlignment;
@ -79,8 +80,7 @@ public class DialogMenuGenerator {
Node bodyNode = doc.getElementsByTag("body").first(); Node bodyNode = doc.getElementsByTag("body").first();
container.addChild(HtmlParser.parseJSoup(bodyNode)); container.addChild(HtmlParser.parseJSoup(bodyNode));
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
rVal.addChild(container); rVal.addChild(container);

View File

@ -37,7 +37,6 @@ public class ShooterTree implements BehaviorTree {
@Override @Override
public void simulate(float deltaTime) { public void simulate(float deltaTime) {
// TODO Auto-generated method stub
switch(state){ switch(state){
case ATTACK: { case ATTACK: {
// //

View File

@ -189,7 +189,6 @@ public class ClientStanceComponent implements BehaviorTree {
@Override @Override
public void simulate(float deltaTime) { public void simulate(float deltaTime) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'simulate'"); throw new UnsupportedOperationException("Unimplemented method 'simulate'");
} }

View File

@ -104,7 +104,6 @@ public class ServerStanceComponent implements BehaviorTree {
@Override @Override
public void simulate(float deltaTime) { public void simulate(float deltaTime) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'simulate'"); throw new UnsupportedOperationException("Unimplemented method 'simulate'");
} }

View File

@ -5,6 +5,7 @@ import java.io.IOException;
import java.nio.file.Files; import java.nio.file.Files;
import electrosphere.engine.Globals; import electrosphere.engine.Globals;
import electrosphere.logger.LoggerInterface;
import electrosphere.util.Utilities; import electrosphere.util.Utilities;
/** /**
@ -75,8 +76,7 @@ public class NetConfig {
try { try {
Globals.netConfig = Utilities.deserialize(Files.readString(file.toPath()), NetConfig.class); Globals.netConfig = Utilities.deserialize(Files.readString(file.toPath()), NetConfig.class);
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
} }
} }

View File

@ -392,7 +392,6 @@ public class HomogenousInstanceData implements InstanceData {
@Override @Override
public void destroy() { public void destroy() {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'destroy'"); throw new UnsupportedOperationException("Unimplemented method 'destroy'");
} }

View File

@ -179,7 +179,6 @@ public class FontUtils {
// imgFile.getParentFile().mkdirs(); // imgFile.getParentFile().mkdirs();
// ImageIO.write(image, "png", Files.newOutputStream(imgFile.toPath())); // ImageIO.write(image, "png", Files.newOutputStream(imgFile.toPath()));
// } catch (IOException e) { // } catch (IOException e) {
// // TODO Auto-generated catch block
// e.printStackTrace(); // e.printStackTrace();
// } // }

View File

@ -291,8 +291,7 @@ public class ScriptEngine extends SignalServiceImpl {
try { try {
fileChecksumMap.put(normalizedPath,FileUtils.getChecksum(fileContent)); fileChecksumMap.put(normalizedPath,FileUtils.getChecksum(fileContent));
} catch (NoSuchAlgorithmException e) { } catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block LoggerInterface.loggerScripts.ERROR(e);
e.printStackTrace();
} }
//store on script side //store on script side

View File

@ -147,8 +147,7 @@ public class ServerBlockChunkDiskMap {
inflaterInputStream.close(); inflaterInputStream.close();
rawData = out.toByteArray(); rawData = out.toByteArray();
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
//parse //parse
if(rawData != null){ if(rawData != null){
@ -256,8 +255,7 @@ public class ServerBlockChunkDiskMap {
//save to the map of filenames //save to the map of filenames
worldPosFileMap.put(chunkKey,fileName); worldPosFileMap.put(chunkKey,fileName);
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
lock.unlock(); lock.unlock();
} }

View File

@ -97,8 +97,7 @@ public class FluidDiskMap {
inflaterInputStream.close(); inflaterInputStream.close();
rawData = out.toByteArray(); rawData = out.toByteArray();
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
//parse //parse
if(rawData != null){ if(rawData != null){
@ -197,8 +196,7 @@ public class FluidDiskMap {
//save to the map of filenames //save to the map of filenames
worldPosFileMap.put(chunkKey,fileName); worldPosFileMap.put(chunkKey,fileName);
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
} }

View File

@ -14,7 +14,6 @@ public class DefaultFluidGenerator implements FluidGenerator {
@Override @Override
public void setModel(FluidModel model) { public void setModel(FluidModel model) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'setModel'"); throw new UnsupportedOperationException("Unimplemented method 'setModel'");
} }

View File

@ -178,8 +178,7 @@ public class ChunkDiskMap {
inflaterInputStream.close(); inflaterInputStream.close();
rawData = out.toByteArray(); rawData = out.toByteArray();
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
//parse //parse
if(rawData != null){ if(rawData != null){
@ -267,8 +266,7 @@ public class ChunkDiskMap {
//save to the map of filenames //save to the map of filenames
worldPosFileMap.put(chunkKey,fileName); worldPosFileMap.put(chunkKey,fileName);
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
lock.unlock(); lock.unlock();
} }

View File

@ -379,8 +379,7 @@ public class FileUtils {
try { try {
rVal = Files.readAllBytes(FileUtils.getSaveFile(saveName,sanitizedFilePath).toPath()); rVal = Files.readAllBytes(FileUtils.getSaveFile(saveName,sanitizedFilePath).toPath());
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
return rVal; return rVal;
} }
@ -474,8 +473,7 @@ public class FileUtils {
try { try {
Files.delete(file.toPath()); Files.delete(file.toPath());
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block LoggerInterface.loggerFileIO.ERROR(e);
e.printStackTrace();
} }
} }
} }

View File

@ -24,7 +24,6 @@ public class TestRenderingUtils {
Files.createDirectories(new File(existingRenderPath).toPath()); Files.createDirectories(new File(existingRenderPath).toPath());
ImageIO.write(screenshot, "png", new File(existingRenderPath)); ImageIO.write(screenshot, "png", new File(existingRenderPath));
} catch (IOException e) { } catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace(); e.printStackTrace();
} }
} }