Remove edit post link from static front page

Try

function foo_edit_post_link($link) {
  if (is_home()) {
   return FALSE;
  }
    return $link;
}

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)