Skip to content

Commit

Permalink
Lose unused stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeremy Wootten authored and Jeremy Wootten committed Jan 2, 2025
1 parent adf004a commit df0bbd4
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions src/Widgets/TerminalWidget.vala
Original file line number Diff line number Diff line change
Expand Up @@ -806,20 +806,6 @@ namespace Terminal {
}
}

private string get_shell_name () {
return (Path.get_basename (get_pid_cmdline (child_pid)));
}

public string get_pid_cmdline (int pid) {
try {
string cmdline;
GLib.FileUtils.get_contents ("/proc/%d/cmdline".printf (pid), out cmdline);
return cmdline;
} catch (GLib.Error e) {
return "";
}
}

public string get_pid_exe_name (int pid) {
try {
var exe = GLib.FileUtils.read_link ("/proc/%d/exe".printf (pid));
Expand Down Expand Up @@ -995,7 +981,7 @@ namespace Terminal {
if (cwd != current_working_directory) {
update_current_working_directory (cwd);
}
warning ("shell name %s", get_shell_name ());

int pid;
try_get_foreground_pid (out pid);
if (pid != fg_pid) {
Expand Down

0 comments on commit df0bbd4

Please sign in to comment.