Skip to content

Commit

Permalink
🧼 refactor: Remove commented-out code, unneeded files
Browse files Browse the repository at this point in the history
  • Loading branch information
eliasgierlinger committed Oct 11, 2023
1 parent efe5319 commit d3725f0
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 72 deletions.
7 changes: 7 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 0 additions & 22 deletions .idea/php.xml

This file was deleted.

1 change: 0 additions & 1 deletion .idea/unguard.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/frontend/site.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ async function getPost(req, res) {

const likeData = await getLikeCount(req, postId)

fetchUsingDeploymentBase(req, () => req.MICROBLOG_API.get(`/post/${postId}`)).then((response) => {//
fetchUsingDeploymentBase(req, () => req.MICROBLOG_API.get(`/post/${postId}`)).then((response) => {

let postData = response.data;
postData = {...postData, likeCount: likeData.likeCount, userLiked: likeData.userLiked};
Expand Down Expand Up @@ -394,8 +394,8 @@ function postBio(req, res) {
.then((_) => {
res.redirect(extendURL(`/user/${getJwtUser(req.cookies)}`));
}).catch(error => {
res.status(statusCodeForError(error)).render('error.njk', handleError(error));
});
res.status(statusCodeForError(error)).render('error.njk', handleError(error));
});
}


Expand Down
5 changes: 0 additions & 5 deletions src/like-service/.styleci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,3 @@ php:
not-name:
- index.php
- server.php
js:
finder:
not-name:
- webpack.mix.js
css: true
11 changes: 2 additions & 9 deletions src/like-service/app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,15 @@ class Kernel extends ConsoleKernel
*
* @var array
*/
protected $commands = [
//
];
protected $commands = [];

/**
* Define the application's command schedule.
*
* @param \Illuminate\Console\Scheduling\Schedule $schedule
* @return void
*/
protected function schedule(Schedule $schedule)
{
// $schedule->command('inspire')->hourly();
}
protected function schedule(Schedule $schedule) {}

/**
* Register the commands for the application.
Expand All @@ -50,7 +45,5 @@ protected function schedule(Schedule $schedule)
protected function commands()
{
$this->load(__DIR__.'/Commands');

//require base_path('routes/console.php');
}
}
9 changes: 2 additions & 7 deletions src/like-service/app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ class Handler extends ExceptionHandler
*
* @var array
*/
protected $dontReport = [
//
];
protected $dontReport = [];

/**
* A list of the inputs that are never flashed for validation exceptions.
Expand All @@ -45,9 +43,6 @@ class Handler extends ExceptionHandler
*
* @return void
*/
public function register()
{
//
}
public function register() {}

}
10 changes: 2 additions & 8 deletions src/like-service/app/Providers/AppServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,12 @@ class AppServiceProvider extends ServiceProvider
*
* @return void
*/
public function register()
{
//
}
public function register() {}

/**
* Bootstrap any application services.
*
* @return void
*/
public function boot()
{
//
}
public function boot() {}
}
Empty file.
17 changes: 0 additions & 17 deletions src/like-service/webpack.mix.js

This file was deleted.

0 comments on commit d3725f0

Please sign in to comment.