chore: remove redundant placeholder generators

This commit is contained in:
ktyl 2024-07-20 13:25:19 +01:00
parent 5f62b08fd1
commit 9d2597f7a4
1 changed files with 0 additions and 21 deletions

21
main.js
View File

@ -22,26 +22,6 @@ function getRandomColor() {
return `hsl(${h}deg, 90%, 85%)`; return `hsl(${h}deg, 90%, 85%)`;
} }
function getUsername() {
const r = Math.floor(Math.random() * users.length);
return users[r].username;
}
function getContent(username) {
let user = null;
for (let i = 0; i < users.length; i++) {
if (users[i].username == username) {
user = users[i];
break;
}
}
return "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.";
}
class Post { class Post {
constructor(data) { constructor(data) {
this.id = data.id; this.id = data.id;
@ -222,7 +202,6 @@ function writePost() {
break; break;
} }
} }
console.log(firstPost);
// generate a post to insert before the first post // generate a post to insert before the first post
const postData = { const postData = {